package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * 读取文档内容
 */
public class createDemo1 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis =new FileInputStream("fos1.txt");
       int by =fis.read();
       while (by!=-1){
           System.out.print((char) by);
           by=fis.read();
       }
       fis.close();
    }
}
